Skip to content

Upgrading to the new integer protocols #951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Apr 15, 2017

No description provided.

public mutating func negate() {
native.negate()
}

@_transparent
public mutating func add(_ other: CGFloat) {
native.add(other.native)
public static func +=(_ lhs: inout CGFloat, _ rhs: CGFloat) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a source-compatible change?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically not, but these methods were there only to implement operators on the protocol, which is no longer required. In any case these missing methods can now be added for source compatibility in the protocol. Thanks for looking at this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the missing methods here: swiftlang/swift@192c112

@moiseev moiseev changed the title [NOT FOR MERGE yet] Upgrading to the new integer protocols Upgrading to the new integer protocols Apr 17, 2017
@moiseev
Copy link
Contributor Author

moiseev commented Apr 17, 2017

@parkera I've just merged the new integers into master. Is it OK for me to merge this one?

@slavapestov
Copy link
Contributor

This is blocking PR testing on Linux so I'm going to merge it.

@slavapestov slavapestov merged commit ec07107 into swiftlang:master Apr 18, 2017
@moiseev moiseev deleted the new-integer-protocols branch April 18, 2017 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants